home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Interactive CD Sampler / Microsoft Interactive CD Sampler.iso / DEMOS / C_Automp / AUTOTP / TRIPPLAN.DIR / Scripts_3_setLoop.ls < prev    next >
Encoding:
Text File  |  1996-07-25  |  298 b   |  25 lines

  1. property doLoop
  2.  
  3. on new me
  4.   set doLoop to #f
  5.   return me
  6. end
  7.  
  8. on setLoop me
  9.   case doLoop of
  10.     #y:
  11.       loopMe()
  12.     #n:
  13.       set doLoop to #f
  14.       go(marker(0))
  15.   end case
  16. end
  17.  
  18. on loopMe
  19.   repeat while doLoop = #y
  20.     if the mouseDown then
  21.       set doLoop to #f
  22.     end if
  23.   end repeat
  24. end
  25.